import request from '@/utils/request'

//查询资源变更列表
export function resourcesChangeList(data) {
  return request({
    url: '/activiti/ResourcesChange/list',
    method: 'get',
    params: data
  })
}

//根据流程实例id获取资源申请详细信息
export function getResourcesByCloudUpId(id) {
  return request({
    url: '/activiti/getResourcesByCloudUpId/'+id,
    method: 'get',
  })
}


// 提交变更
export function resourcesChangeApply(data) {
  return request({
    url: '/activiti/ResourcesChange/apply',
    method: 'post',
    data: data
  })
}


//获取资源变更详细信息
export function getResourcesChange(data) {
  return request({
    url: '/activiti/ResourcesChange/'+data.id,
    method: 'get',
    params: data
  })
}
